Skip to content

feat(resource-catalog): add ENTITY to ResourceType enum#1704

Closed
msbhavana wants to merge 3 commits into
UiPath:mainfrom
msbhavana:feat/add-entity-to-resource-catalog
Closed

feat(resource-catalog): add ENTITY to ResourceType enum#1704
msbhavana wants to merge 3 commits into
UiPath:mainfrom
msbhavana:feat/add-entity-to-resource-catalog

Conversation

@msbhavana

Copy link
Copy Markdown
Contributor

Summary

  • Adds ENTITY = "entity" to the ResourceType enum in resource_catalog.py
  • Enables entity bindings to go through the resource catalog lookup during uipath push
  • When an entity is found in the catalog, it is created as a referenced resource instead of being skipped or falling back to a virtual resource
  • Updates existing test to use choiceSet as the unsupported kind example (instead of entity)
  • Adds new test test_entity_binding_catalog_hit_creates_reference to verify entities are properly referenced

Context

Entity bindings in bindings.json were previously skipped during push because the ResourceType enum had no ENTITY member. This caused _find_in_resource_catalog to short-circuit (returning None), and since entity is also not in the supported_virtual_kinds set, the binding was silently skipped.

With this change, folder-level entities declared in bindings can be properly resolved and linked into Studio Web solutions as referenced resources.

Test plan

  • Verified locally: uip codedagent push with entity binding creates a referenced resource (kind = Entity, type = Native)
  • Existing tests updated to reflect new behavior
  • New test added for entity catalog hit → reference creation

🤖 Generated with Claude Code

…d resource support

Entity bindings were previously skipped during push because the ResourceType
enum lacked an ENTITY member, causing catalog lookups to short-circuit. This
meant entity resources could only be created as virtual placeholders. Adding
ENTITY to the enum enables proper resource catalog lookups so entities can be
created as referenced resources when found in the catalog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 9, 2026 10:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the platform Resource Catalog type model to recognize entity resources and adjusts CLI push tests to reflect the new entity-binding behavior (catalog lookup → referenced resource creation) while preserving skip behavior for truly unsupported virtual kinds.

Changes:

  • Added ENTITY = "entity" to ResourceType in the Resource Catalog models.
  • Updated the “unsupported virtual kind” test to use choiceSet instead of entity.
  • Added a new test ensuring an entity binding that is found in the catalog results in a referenced resource being created.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/uipath-platform/src/uipath/platform/resource_catalog/resource_catalog.py Extends ResourceType enum to include ENTITY, enabling catalog lookup for entity bindings.
packages/uipath/tests/cli/test_create_resources.py Updates/expands push behavior tests to validate entity catalog hit → reference creation and keep unsupported-kind skip coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cosmyo cosmyo requested a review from radu-mocanu June 9, 2026 13:27
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@msbhavana

Copy link
Copy Markdown
Contributor Author

Superseded by #1705

@msbhavana msbhavana closed this Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants